package com.yunfeisoft.business.model;

import com.yunfeisoft.common.base.BaseModel;
import com.yunfeisoft.common.utils.DateUtils;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * ClassName: ElderPharmacy
 * Description: 主要用药情况从表
 *
 * @Author: Jackie liu
 * Date: 2020-04-04
 */
@Entity
@Table(name = "TT_ELDER_PHARMACY")
public class ElderPharmacy extends BaseModel implements Serializable {

    /**
     * Field serialVersionUID: 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 老人健康主表id
     */
    @Column
    private String elderHealthId;

    /**
     * 药物名称
     */
    @Column
    private String medicinalName;

    /**
     * 用法
     */
    @Column
    private String medicinalUse;

    /**
     * 用量
     */
    @Column
    private String medicinalNumber;

    /**
     * 用药时间
     */
    @Column
    private Date medicinalTime;

    /**
     * 服药依从性(字典项)
     */
    @Column
    private String medicinalCompliance;


    public String getElderHealthId() {
        return elderHealthId;
    }

    public void setElderHealthId(String elderHealthId) {
        this.elderHealthId = elderHealthId;
    }

    public String getMedicinalName() {
        return medicinalName;
    }

    public void setMedicinalName(String medicinalName) {
        this.medicinalName = medicinalName;
    }

    public String getMedicinalUse() {
        return medicinalUse;
    }

    public void setMedicinalUse(String medicinalUse) {
        this.medicinalUse = medicinalUse;
    }

    public String getMedicinalNumber() {
        return medicinalNumber;
    }

    public void setMedicinalNumber(String medicinalNumber) {
        this.medicinalNumber = medicinalNumber;
    }

    public Date getMedicinalTime() {
        return medicinalTime;
    }

    public String getMedicinalTimeStr() {
        if (medicinalTime == null) {
            return null;
        }
        return DateUtils.dateToString(medicinalTime);
    }

    public void setMedicinalTime(Date medicinalTime) {
        this.medicinalTime = medicinalTime;
    }

    public String getMedicinalCompliance() {
        return medicinalCompliance;
    }

    public void setMedicinalCompliance(String medicinalCompliance) {
        this.medicinalCompliance = medicinalCompliance;
    }


}